import { ElMessage } from "element-plus";
export async function copyTextToClipboard(text) {
  try {
    await navigator.clipboard.writeText(text);
    ElMessage.success("复制成功");
  } catch (err) {
    ElMessage.error("Failed to copy: ", err);
  }
}
